using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using Sysgeprava.Entities;

namespace Sysgeprava.Repository.Mapping
{
    public class CRIAMap : EntityTypeConfiguration<CRIA>
    {
        public CRIAMap()
        {
            // Primary Key
            this.HasKey(t => t.Codigo);

            // Properties
            // Table & Column Mappings
            this.ToTable("CRIAS");
            this.Property(t => t.Codigo).HasColumnName("Codigo");
            this.Property(t => t.IdServicio).HasColumnName("IdServicio");
            this.Property(t => t.IdCria).HasColumnName("IdCria");

            // Relationships
        }
    }
}
